import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
// 让所有小的reducer都合并成一个大的immutable对象 reducer
import { combineReducers } from 'redux-immutable'
import { composeWithDevTools } from 'redux-devtools-extension'


import film from '../reducers/film'

const reducer = combineReducers({
  film
})

export default createStore(
  reducer,
  composeWithDevTools(applyMiddleware(thunk))
)




